package gggameserver.games.khet;

import gggameserver.games.Position;

public class KhetMoveResult {

	private boolean legal;
	private String errorMessage;

	private int newDirection;
	private Position newPosition;

	public KhetMoveResult(Position newPos, int newDir) {
		this.legal = true;
		this.newDirection = newDir;
		this.newPosition = newPos;
	}

	public KhetMoveResult(String errorMessage) {
		this.legal = false;
		this.errorMessage = errorMessage;
	}

	public int getNewDirection() {
		return this.newDirection;
	}

	public final Position getNewPosition() {
		return this.newPosition;
	}

	public boolean isLegal() {
		return this.legal;
	}

	public String getErrorMessage() {
		return this.errorMessage;
	}

}
